To remove or abolish completely.
They rooted out all vestiges of corruption.
To search for and discover.
It took them hours to root out exactly where the water was coming in.